/**
 * Created by ayu on 2017/6/24.
 */
const express = require ('express');
const router = express.Router ();
const signatureController = require ('../controllers/SignatureController');
const autoReplyController = require ('../controllers/AutoReplyController');
// 校验信息来源合法性
router.get ('/api/auth/ack', signatureController.signatureWeixin);
/**
 *  接收：文字、图片、音频、视频、位置、链接、事件
 *  回复：纯文本、图文、音乐、音频、图片、视频
 */
router.post ('/api/auth/ack', autoReplyController.reply);
module.exports = router;